﻿using Sw.Hospital.HealthExaminationSystem.Common.Bases;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Sw.Hospital.HealthExaminationSystem.Statistics.Roster
{
    public partial class frmys : UserBaseForm
    {
        public Color col1;
        public Color col2;
        public Color colwtj;
        public Color coltjz;
        public Color coltjwc;
        public Color colzj;
        public Color colsh;
       
        public frmys()
        {
            InitializeComponent();
        }

        private void frmys_Load(object sender, EventArgs e)
        {
            
        }

        private void simpleButton3_Click(object sender, EventArgs e)
        {
            ColorDialog colorDia = new ColorDialog();

            if (colorDia.ShowDialog() == DialogResult.OK)
            {
                //获取所选择的颜色
                Color colorChoosed = colorDia.Color;
                //改变panel的背景色
                panel1.BackColor = colorChoosed;

            }

        }

        private void simpleButton4_Click(object sender, EventArgs e)
        {
            ColorDialog colorDia = new ColorDialog();

            if (colorDia.ShowDialog() == DialogResult.OK)
            {
                //获取所选择的颜色
                Color colorChoosed = colorDia.Color;
                //改变panel的背景色
                panel2.BackColor = colorChoosed;

            }
        }

        private void simpleButton2_Click(object sender, EventArgs e)
        {

        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            col1 = panel1.BackColor;
            col2 = panel2.BackColor;
             colwtj = panel3.BackColor;
       coltjz = panel4.BackColor;
        coltjwc = panel5.BackColor;
      colzj = panel6.BackColor;

            colsh = panel7.BackColor;
      
            this.DialogResult = DialogResult.OK;
        }

        private void simpleButton5_Click(object sender, EventArgs e)
        {
            ColorDialog colorDia = new ColorDialog();

            if (colorDia.ShowDialog() == DialogResult.OK)
            {
                //获取所选择的颜色
                Color colorChoosed = colorDia.Color;
                //改变panel的背景色
                panel3.BackColor = colorChoosed;

            }

        }

        private void simpleButton6_Click(object sender, EventArgs e)
        {
            ColorDialog colorDia = new ColorDialog();

            if (colorDia.ShowDialog() == DialogResult.OK)
            {
                //获取所选择的颜色
                Color colorChoosed = colorDia.Color;
                //改变panel的背景色
                panel4.BackColor = colorChoosed;

            }
        }

        private void simpleButton7_Click(object sender, EventArgs e)
        {
            ColorDialog colorDia = new ColorDialog();

            if (colorDia.ShowDialog() == DialogResult.OK)
            {
                //获取所选择的颜色
                Color colorChoosed = colorDia.Color;
                //改变panel的背景色
                panel5.BackColor = colorChoosed;

            }
        }

        private void simpleButton8_Click(object sender, EventArgs e)
        {
            ColorDialog colorDia = new ColorDialog();

            if (colorDia.ShowDialog() == DialogResult.OK)
            {
                //获取所选择的颜色
                Color colorChoosed = colorDia.Color;
                //改变panel的背景色
                panel6.BackColor = colorChoosed;

            }
        }

        private void simpleButton9_Click(object sender, EventArgs e)
        {
            ColorDialog colorDia = new ColorDialog();

            if (colorDia.ShowDialog() == DialogResult.OK)
            {
                //获取所选择的颜色
                Color colorChoosed = colorDia.Color;
                //改变panel的背景色
                panel7.BackColor = colorChoosed;

            }
        }
    }
}
